#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2022/4/15 5:02 下午
# @Author : wang
# @Email : 136697880@qq.com
# @File : encrypt.py
# @Project : bugmgr
import hashlib
from django.conf import settings


def md5(string):
    hashlib_object = hashlib.md5(settings.SECRET_KEY.encode('utf-8'))
    hashlib_object.update(string.encode('utf-8'))
    return hashlib_object.hexdigest()
